//
//  ZPTDTableViewCell01.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/1/16.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "ZPTDTableViewCell01.h"

@implementation ZPTDTableViewCell01

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dail:)];
    [_teacherPhone addGestureRecognizer:tap];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)gotoDetail:(id)sender {
    if (_delegate&&[_delegate respondsToSelector:@selector(goToDetailPage)]) {
        [_delegate goToDetailPage];
    }
}

-(void)dail:(NSString*)phone{
    if (_delegate&&[_delegate respondsToSelector:@selector(dailNum:)]) {
        [_delegate dailNum:_teacherPhone.text];
    }
}

@end
